require 'active_record'

# 配置数据库连接（以 PostgreSQL 为例）
ActiveRecord::Base.establish_connection(
  adapter:  'mysql2',
  host:     '192.168.3.63',
  database: 'immortal',
  username: 'root',
  password: '123456'
)

# # 定义模型
# class User < ActiveRecord::Base
# end

# 创建带注释的表
ActiveRecord::Schema.define do
  create_table :fa_user_hostel, comment: '用户表' do |t|
    t.string :name, comment: '用户名'
    t.timestamps
  end
end